<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 春风
  Date: 2023/6/10
  Time: 10:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>添加房源</title>
</head>
<body>
<a href="/add">
    <button>添加房源</button>
</a>
<table>
    <tr>
        <th>编号</th>
        <th>租赁方式</th>
        <th>租金</th>
        <th>联系人</th>
        <th>押金方式</th>
        <th>房屋类型</th>
        <th>详细地址</th>
    </tr>
    <c:forEach items="${list}" var="h" >
        <tr>
             <td>${h.id}</td>
             <td>${h.lease_mode}</td>
             <td>${h.rent}</td>
             <td>${h.contacts}</td>
             <td>${h.deposit_method}</td>
             <td>${h.house_type_id}</td>
             <td>${h.address}</td>
        </tr>
    </c:forEach>
</table>
</body>
</html>
